package com.ggh.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * @author jj
 * @date 2019/10/15 10:14
 * 分级推销
 */
@Data
@TableName("market")
public class Market extends Model<Market> {
    /**
     * id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private int id;
    /**
     * 用户id
     */
    private int userid;
    /**
     * 一级推销userid
     */
    private int oneGeneralize;
    /**
     * 一级推销用户姓名
     */
    private String oneGeneralizeName;
    /**
     * 二级推销userid
     */
    private int twoGeneralize;
    /**
     * 二级推销用户姓名
     */
    private String twoGeneralizeName;
    /**
     * 三级推销userid
     */
    private int treeGeneralize;
    /**
     * 三级推销用户姓名
     */
    private String treeGeneralizeName;

    @Override
    protected Serializable pkVal() {
        return id;
    }
}
